﻿<%@ Control Language="C#" EnableViewState="false" AutoEventWireup="true" CodeBehind="ucEgreso.ascx.cs" Inherits="Com.Binaria.SISCOB.Web.UI.ucEgreso" %>
<div id="divMaestro">

<asp:Panel runat="server" ID="pnlFind" Visible="false" CssClass="tabbed_box" >
<fieldset>
    <legend>Filtrar Informaci&oacute;n</legend>
    <div class="tabbed_area">
        <ul class="tabs"> 
            <li><a href="#" title="Egreso" class="tab active">Egreso</a></li>
        </ul>

        <div class="tabContent" id="Egreso">    
        <table>
            <tr>
                <td>&nbsp;<asp:Label runat="server" ID="lblEstado" AssociatedControlID="ctlEstado" Text="Estado" /></td>
                <td>&nbsp;<asp:DropDownList runat="server" ID="ctlEstado" DataTextField="Text" DataValueField="Id" Width="155px" /></td>
                <td style="width:150px">&nbsp;</td>
                <td>&nbsp;<asp:Label runat="server" ID="lblFchDesde" AssociatedControlID="ctlFchDesde" Text="Fecha Desde" /></td>
                <td>&nbsp;<asp:TextBox runat="server" ID="ctlFchDesde" Width="70px" MaxLength="10" />&nbsp;<img id="imgFchDesde" src="../../Assets/images/date.png" class="date-pick" /></td>
                <td>&nbsp;<asp:Label runat="server" ID="lblFchHasta" AssociatedControlID="ctlFchHasta" Text="Fecha Hasta" /></td>
                <td>&nbsp;<asp:TextBox runat="server" ID="ctlFchHasta" Width="70px" MaxLength="10" />&nbsp;<img id="imgFchHasta" src="../../Assets/images/date.png" class="date-pick" /></td>                
            </tr>
            <tr>
                <td>&nbsp;<asp:Label runat="server" ID="lblFchDocumento" AssociatedControlID="ctlFchDocumento" Text="FchDocumento" /></td>
                <td colspan="5">&nbsp;<asp:TextBox runat="server" ID="ctlFchDocumento" Width="70px" MaxLength="10" />&nbsp;<img id="imgFchDocumento" src="../../Assets/images/date.png" class="date-pick" /></td>
            </tr>
            <tr>
                <td>&nbsp;<asp:Label runat="server" ID="lblNmrDocumento" AssociatedControlID="ctlNmrDocumento" Text="NmrDocumento" /></td>
                <td colspan="5">&nbsp;<asp:TextBox runat="server" ID="ctlNmrDocumento" Width="50px" MaxLength="10" /></td>
            </tr>
            <tr>
                <td>&nbsp;<asp:Label runat="server" ID="lblMonto" AssociatedControlID="ctlMonto" Text="Monto" /></td>
                <td colspan="5">&nbsp;<asp:TextBox runat="server" ID="ctlMonto" Width="65px" MaxLength="19" CssClass="txtRight" /></td>
            </tr>
            <tr>
                <td>&nbsp;<asp:Label runat="server" ID="lblCuentaCorriente" AssociatedControlID="ctlCuentaCorriente" Text="CuentaCorriente" /></td>
                <td colspan="5">&nbsp;<asp:DropDownList runat="server" ID="ctlCuentaCorriente" Width="190px" DataTextField="Text" DataValueField="Id" /></td>
            </tr>
        </table>
        </div>
    </div>
</fieldset>
<div id="divNew">
	<a href="<%= VirtualPathUtility.ToAbsolute("~/Paginas/Mantto/Default.aspx") %>?View=Egreso&Action=3&TB_iframe=true" class="btn btnadd jqBox" title="Agregar informaci&oacute;n ..." >Nuevo</a>
</div>
<div id="divAction">
    <asp:LinkButton ID="btnBuscar" runat="server" ToolTip="Buscar informaci&oacute;n ..." CssClass="btn btnfind">Buscar</asp:LinkButton>
</div>
<div id="divAction">
    <a title="Exportar a Excel" class="btn btncopy" href='<%= VirtualPathUtility.ToAbsolute("~/Paginas/Reporte/ExportHandler.ashx") %>?Tipo=EGR'>&nbsp;Excel&nbsp;</a>
</div>
<div id="divAction">
    <a title="Egresos caducados" class="btn btnlogout" href='<%= VirtualPathUtility.ToAbsolute("~/Paginas/Reporte/ExportHandler.ashx") %>?Tipo=CAD'>Caducados</a>
</div>
</asp:Panel>


<asp:Panel runat="server" ID="pnlEdit" Visible="false" CssClass="tabbed_box">
<fieldset>
    <div class="tabbed_area">
        <ul class="tabs">
            <li><a href="#" title="Egreso" class="tab active">Egreso</a></li>        
            <li><a href="#" title="DocumentoTransaccion" class="tab">DocumentoTransaccion</a></li>
        </ul>

        <div class="tabContent tabContentModal" id="Egreso">
        <table>
            <tr>
                <td>&nbsp;<asp:Label runat="server" ID="lblEsManualE" AssociatedControlID="ctlEsManualE" Text="EsManual" /></td>
                <td>
                    &nbsp;
                    <asp:CheckBox ID="ctlEsManualE" runat="server" />
                </td>
            </tr>
            <tr>
                <td>&nbsp;<asp:Label runat="server" ID="lblEstadoE" AssociatedControlID="ctlEstadoE" Text="Estado" /></td>
<%--                <td>
                    &nbsp;
                    <asp:TextBox runat="server" ID="ctlEstadoE" 
                                                Width="40px" 
                                                MaxLength="2" />
                </td>--%>
                <td>
                    &nbsp;
                    <asp:DropDownList runat="server" ID="ctlEstadoE" DataTextField="Text" DataValueField="Id"
                                                Width="155px" 
                                                />
                </td>                
            </tr>
        </table>
        </div>

        <div class="tabContent tabContentModal" id="DocumentoTransaccion">
        <table>
            <tr>
                <td>&nbsp;<asp:Label runat="server" ID="lblSucursalKyAc11DocumentoTransaccionE" AssociatedControlID="ctlSucursalKyAc11DocumentoTransaccionE" Text="Sucursal" /></td>
                <td>
                    &nbsp;
                    <asp:DropDownList runat="server" ID="ctlSucursalKyAc11DocumentoTransaccionE" Width="190px" DataTextField="Text" DataValueField="Id" />                                           
                </td>
            </tr>
            <tr>
                <td>&nbsp;<asp:Label runat="server" ID="lblCuentaCorrienteKyAc11DocumentoTransaccionE" AssociatedControlID="ctlCuentaCorrienteKyAc11DocumentoTransaccionE" Text="CuentaCorriente" /></td>
                <td>
                    &nbsp;
                    <asp:DropDownList runat="server" ID="ctlCuentaCorrienteKyAc11DocumentoTransaccionE" Width="190px" DataTextField="Text" DataValueField="Id" />                                           
                </td>
            </tr>
            <tr>
                <td>&nbsp;<asp:Label runat="server" ID="lblMontoKyAc11DocumentoTransaccionE" AssociatedControlID="ctlMontoKyAc11DocumentoTransaccionE" Text="Monto" /></td>
                <td>
                    &nbsp;
                    <asp:TextBox runat="server" 
                                 ID="ctlMontoKyAc11DocumentoTransaccionE" 
                                 Width="65px" 
                                 MaxLength="19" CssClass="txtRight" />
                </td>
            </tr>
            <tr>
                <td>&nbsp;<asp:Label runat="server" ID="lblFchDocumentoTextKyAc11DocumentoTransaccionE" AssociatedControlID="ctlFchDocumentoTextKyAc11DocumentoTransaccionE" Text="FchDocumento" /></td>
                <td>
                    &nbsp;
                    <asp:TextBox runat="server" ID="ctlFchDocumentoTextKyAc11DocumentoTransaccionE" 
                                                Width="70px" 
                                                MaxLength="10" />
                    &nbsp;
                    <img id="imgFchDocumentoTextKyAc11DocumentoTransaccionE" src="../../Assets/images/date.png" class="date-pick" />
                </td>
            </tr>
            <tr>
                <td>&nbsp;<asp:Label runat="server" ID="lblFchUpdateTextKyAc11DocumentoTransaccionE" AssociatedControlID="ctlFchUpdateTextKyAc11DocumentoTransaccionE" Text="FchUpdate" /></td>
                <td>
                    &nbsp;
                    <asp:TextBox runat="server" ID="ctlFchUpdateTextKyAc11DocumentoTransaccionE" 
                                                Width="70px" 
                                                MaxLength="10" />
                    &nbsp;
                    <img id="imgFchUpdateTextKyAc11DocumentoTransaccionE" src="../../Assets/images/date.png" class="date-pick" />
                </td>
            </tr>
            <tr>
                <td>&nbsp;<asp:Label runat="server" ID="lblGlosaKyAc11DocumentoTransaccionE" AssociatedControlID="ctlGlosaKyAc11DocumentoTransaccionE" Text="Glosa" /></td>
                <td>
                    &nbsp;
                    <asp:TextBox runat="server" 
                                 ID="ctlGlosaKyAc11DocumentoTransaccionE" 
                                 Width="375px" 
                                 MaxLength="35" />
                </td>
            </tr>
            <tr>
                <td>&nbsp;<asp:Label runat="server" ID="lblNmrDocumentoKyAc11DocumentoTransaccionE" AssociatedControlID="ctlNmrDocumentoKyAc11DocumentoTransaccionE" Text="NmrDocumento" /></td>
                <td>
                    &nbsp;
                    <asp:TextBox runat="server" 
                                 ID="ctlNmrDocumentoKyAc11DocumentoTransaccionE" 
                                 Width="50px" 
                                 MaxLength="10" />
                </td>
            </tr>
            <tr>
                <td>&nbsp;<asp:Label runat="server" ID="lblUserNameKyAc11DocumentoTransaccionE" AssociatedControlID="ctlUserNameKyAc11DocumentoTransaccionE" Text="UserName" /></td>
                <td>
                    &nbsp;
                    <asp:TextBox runat="server" 
                                 ID="ctlUserNameKyAc11DocumentoTransaccionE" 
                                 Width="50px" 
                                 MaxLength="10" Enabled="false" />
                </td>
            </tr>
            <%--<tr>
                <td>&nbsp;<asp:Label runat="server" ID="lblEstaActivoKyAc11DocumentoTransaccionE" AssociatedControlID="ctlEstaActivoKyAc11DocumentoTransaccionE" Text="EstaActivo" /></td>
                <td>
                    &nbsp;
                    <asp:CheckBox ID="ctlEstaActivoKyAc11DocumentoTransaccionE" runat="server" />
                </td>
            </tr>--%>
        </table>

        </div>
    </div>
</fieldset>
<div id="divAction">
	<asp:LinkButton ID="btnGrabar" runat="server" OnClick="btnGrabar_Click" CssClass="btn btnsave" >Grabar</asp:LinkButton>
</div>
</asp:Panel>
<div id="divMessage"><asp:Label ID="lblMessage" runat="server" /></div>

<asp:HiddenField runat="server" ID="ctlId" Value="" />
<asp:HiddenField runat="server" ID="ctlIdKyAc11DocumentoTransaccion" Value="" />

<asp:Panel runat="server" ID="pnlGrid" Visible="false" CssClass="csGrid" >
	<table id="tblGridView" style="display:none"></table>
</asp:Panel>

<!-- Add Egreso -->
<script type="text/javascript" src="<%= VirtualPathUtility.ToAbsolute("~/Scripts/ucEgreso.js") %>"></script>
<!-- End Egreso -->

</div>
